import request from '@/utils/request'

// 查询就业和薪资列表
export function listEmployment(query) {
  return request({
    url: '/school/employment/list',
    method: 'get',
    params: query
  })
}

// 查询就业和薪资详细
export function getEmployment(id) {
  return request({
    url: '/school/employment/' + id,
    method: 'get'
  })
}

// 新增就业和薪资
export function addEmployment(data) {
  return request({
    url: '/school/employment',
    method: 'post',
    data: data
  })
}

// 修改就业和薪资
export function updateEmployment(data) {
  return request({
    url: '/school/employment',
    method: 'put',
    data: data
  })
}

// 删除就业和薪资
export function delEmployment(id) {
  return request({
    url: '/school/employment/' + id,
    method: 'delete'
  })
}
